import { get, post } from "../../utils/request"
import { stafftype } from "./type"
//职员管理列表
export const getstaff = (data:object) =>{ 
    return get('staff/list',data);
 }
 //添加
 export const staffadd = (data:stafftype) =>{ 
    return post('staff/add',data);
 }
//删除职员
 export const delstaff = (id:number) =>{ 
    return get('staff/delete',{id:id});
 }
//批量删除职员信息
 export const delallstaff = (ids:number[]) =>{ 
    return post('staff/deleteall',{ids});
 }
//职员类型
 export const getstafftype = () =>{ 
    return get('stafftype/list',{psize:100});
 }